export default function ({ route, redirect }) {
    if (process.client) {
        const token = localStorage.getItem('token');
        if (route.path === '/bindDevice') {
        } else if (!token && route.path !== '/login') {
            redirect('/login');
        }
    }
}